package office.service.sale;

import java.util.List;

import office.action.sale.form.CustomerConditionForm;
import office.action.sale.form.CustomerForm;
import office.action.sale.wrapper.CustomerWrapper;
import platform.common.bo.Page;
import platform.common.exception.BusinessException;

/**
 * 客户管理
 * @author ZhangYQ
 *
 */
public interface ICustomerService {
	/**
	 * 获取分页信息
	 * @return
	 * @throws BusinessException
	 */
	public Page getPageInfo(CustomerConditionForm condition)throws BusinessException;
	/**
	 * 获取所有的客户
	 * @param page
	 * @return
	 * @throws BusinessException
	 */
	public List<CustomerWrapper> findAllCustomer(CustomerConditionForm condition,Page page)throws BusinessException;
	/**
	 * 编辑客户
	 * @param saleChanceForm
	 * @throws BusinessException
	 */
	public void editCustomer(CustomerForm form)throws BusinessException;
	
	/**
	 * 删除客户
	 * @param id
	 * @throws BusinessException
	 */
	public void delCustomerById(String id)throws BusinessException;
	/**
	 * 根据id获取对象
	 * @param id
	 * @return
	 * @throws BusinessException
	 */
	public CustomerForm getById(String id)throws BusinessException;
	/**
	 * 根据状态获取所有的客户
	 * @param page
	 * @return
	 * @throws BusinessException
	 */
	public List<CustomerWrapper> findAllCustomer(CustomerConditionForm condition)throws BusinessException;
	/**
	 * 发送消息
	 * @throws BusinessException
	 */
	public void sendNote() throws BusinessException;
}
